<template>
  <div>
    <div class="recommendhot">
      <div class="content">
        <div class="text">
          <div class="hot">
            <p>热门推荐</p>
          </div>
          <ul>
            <li>华语 <span>|</span></li>
            <li>流行 <span>|</span></li>
            <li>摇滚 <span>|</span></li>
            <li>民谣 <span>|</span></li>
            <li>电子 <span>|</span></li>
          </ul>
          <div class="more">
            <a href="">更多</a>
            <i>&nbsp;</i>
          </div>
        </div>
        <div class="pic">
          <ul>
            <li v-for="item in list" :key="item.id">
              <router-link :to="'/songlist/' + item.id">
                <div
                  class="picshow"
                  style="width: 140px; height: 140px; overflow: hidden"
                >
                  <img v-lazy="item.picUrl" alt="" />
                </div>
              </router-link>
              <div class="bottom">
                <span class="icon"></span>
                <span class="nb">{{ item.trackCount }}万</span>
                <a title="播放"></a>
              </div>
              <p>{{ item.name }}</p>
            </li>
          </ul>
        </div>

        <!-- 新碟上架 -->
        <NewDiscs :newalbumdata="newAlbumData" />
        <!-- 榜单 -->
        <!-- 飙升榜 -->
        <div class="bangdan">
          <div class="top">
            <div class="logo" v-for="item in bangdanlist1" :key="item.id">
              <div class="left">
                <router-link :to="'/songlist/' + item.id">
                  <img :src="item.coverImgUrl" alt="" />
                </router-link>
              </div>
              <div class="right">
                <router-link :to="'/songlist/' + item.id">
                  {{ item.name }}
                </router-link>
                <div class="btn">
                  <a href="javascript:;" @click="play('飙升榜')"></a>
                  <a href="javascript:;"></a>
                </div>
              </div>
            </div>
            <ol class="song">
              <li v-for="(item, index) in trancks1" :key="item.id">
                <span>{{ index + 1 }}</span>
                <div @click="geturl1(songlist[index].id, index, item)">
                  <a href="javascript:;">{{ item.name }}</a>
                </div>
              </li>
            </ol>
            <div class="lookAll">查看全部 →</div>
          </div>

          <!-- 新歌榜 -->
          <div class="new" v-for="item in bangdanlist2" :key="item.id">
            <div class="logo">
              <div class="left">
                <router-link :to="'/songlist/' + item.id">
                  <img :src="item.coverImgUrl" alt="" />
                </router-link>
              </div>
              <div class="right">
                <router-link :to="'/songlist/' + item.id">
                  {{ item.name }}
                </router-link>
                <div class="btn">
                  <a href="javascript:;" @click="play('新歌榜')"></a>
                  <a href=""></a>
                </div>
              </div>
            </div>
            <ol class="song">
              <li v-for="(item, index) in trancks2" :key="item.id">
                <span>{{ index + 1 }}</span>
                <div @click="geturl2(trancks2[index].id, index, item)">
                  <a href="javascript:;">{{ item.name }}</a>
                </div>
              </li>
            </ol>
            <div class="lookAll">查看全部 →</div>

          </div>
          <!-- 原创榜 -->
          <div class="original" v-for="item in bangdanlist3" :key="item.id">
            <div class="logo">
              <div class="left">
                <router-link :to="'/songlist/' + item.id">
                  <img :src="item.coverImgUrl" alt="" />
                </router-link>
              </div>
              <div class="right">
                <router-link :to="'/songlist/' + item.id">
                  {{ item.name }}
                </router-link>

                <div class="btn">
                  <a href="javascript:;" @click="play('原创榜')"></a>
                  <a href=""></a>
                </div>
              </div>
            </div>
            <ol class="song">
              <li v-for="(item, index) in trancks3" :key="item.id">
                <span>{{ index + 1 }}</span>
                <div @click="geturl3(trancks3[index].id, index, item)">
                  <a href="javascript:;">{{ item.name }}</a>
                </div>
              </li>
            </ol>
            <div class="lookAll">查看全部 →</div>

          </div>
        </div>
      </div>
      <!--    右边部分-->
      <div class="right">
        <div class="main">
          <div class="maincontent" v-if="this.$store.state.user.show">
            <div class="fell">
              <div class="conentleft">
                <img
                  width="80"
                  height="80"
                  :src="$store.state.user.avatarUrl"
                  alt=""
                />
              </div>
              <div class="conentright">
                <h4 class="f-fs1">
                  <a href="">{{ $store.state.user.username }}</a>
                </h4>
                <p>
                  <a href="" class="u-lv u-icn2 u-icn2-lv">
                    1<i class="right u-icn2 u-icn2-lvright"></i>
                  </a>
                </p>
                <div class="btn">
                  <a href="">
                    <i>签到</i>
                  </a>
                </div>
              </div>
            </div>
            <ul class="conentfooter">
              <li class="fst">
                <a href="">
                  <strong v-if="followeds">0</strong>
                  <strong v-else>{{ $store.state.user.followeds }}</strong>
                  <span>动态</span>
                </a>
              </li>
              <li>
                <a href="">
                  <strong v-if="follows">0</strong>
                  <strong v-else>{{ $store.state.user.follows }}</strong>
                  <span>关注</span>
                </a>
              </li>

              <li class="lst">
                <a href="">
                  <strong v-if="gender">0</strong>
                  <strong v-else>{{ $store.state.user.gender }}</strong>
                  <span>粉丝</span>
                </a>
              </li>
            </ul>
          </div>
          <div class="mainconent2" v-else>
            <p>登录网易云音乐，可以享受无限收藏的乐趣，并且无限同步到手机</p>
            <button @click="showlogin">用户登录</button>
          </div>

          <div class="songer">
            <div class="title">
              <p>入驻歌手</p>
              <a href="">查看更多 > </a>
            </div>
          </div>
          <ul class="list">
            <li
              v-for="(item, index) in getsongers"
              :key="index"
              @click="into(index)"
            >
              <a>
                <span class="left"><img :src="item.image" alt="" /></span>
                <span class="right">
                  <h4>{{ item.name }}</h4>
                  <p>{{ item.from }}</p>
                </span>
              </a>
            </li>
          </ul>
          <div class="beto">
            <a>
              <i>申请成为网易音乐人</i>
            </a>
          </div>
          <div class="songer" style="margin-top: 30px">
            <div class="title">
              <p style="color: black">热门主播</p>
            </div>
          </div>
          <ul class="anchor">
            <li v-for="(item, index) in hotanchor" :key="index">
              <a href="">
                <router-link :to="'/user/' + item.id">
                  <img :src="item.avatarUrl" alt="" />
                </router-link>
              </a>
              <div class="info">
                <p>
                  <router-link :to="'/user/' + item.id">
                    {{ item.nickName }}
                  </router-link>
                </p>
              </div>
            </li>
          </ul>
        </div>
      </div>
    </div>
    <v-login></v-login>
    <v-footer/>
  </div>
</template>
<script>
import axios from 'axios'
import Config from '@/network/config'
import Login from '@/views/Login/Login'
import NewDiscs from '@/components/NewDiscs'
import footer from '@/views/Footer/Footer'
export default {
  name: 'recommendHot',

  components: {
    'v-login': Login,
    NewDiscs,
    'v-footer':footer
  },

  data() {
    return {
      phone: '13112816412',
      password: 'Abc13112506412',
      logins: true,
      url: Config.url,
      list: [],
      hot: [],
      newAlbumData: [], //专辑
      id: '', //歌曲id 列表
      getsongers: [
        {
          name: '张惠妹aMEI',
          from: '台湾歌手张惠妹',
          image:
            'http://p2.music.126.net/p9U80ex1B1ciPFa125xV5A==/5931865232210340.jpg?param=62y62',
        },
        {
          name: 'Fine乐团',
          from: '独立音乐人',
          image:
            'http://p1.music.126.net/1EN_iqQWU_E3DafzEOh3cA==/3302932937408956.jpg?param=62y62',
        },
        {
          name: '萬曉利',
          from: '民谣歌手、中国现代民谣的代表人物之一',
          image:
            'http://p1.music.126.net/ZuktZvjcxpYBjcWC3gmbPg==/19027048718765608.jpg?param=62y62',
        },
        {
          name: '音乐人赵雷',
          from: '民谣歌手',
          image:
            'http://p1.music.126.net/v_zYgE9kmAwVGWV2c8hFxA==/7943971513291094.jpg?param=62y62',
        },
        {
          name: '王三溥',
          from: '音乐人',
          image:
            'http://p1.music.126.net/6wPGl_ddgAbJTx5kOohcyw==/109951163892302996.jpg?param=62y62',
        },
      ],
      hotanchor: [],
      //榜单
      bangdanlist1: [],
      bangdanlist2: [],
      bangdanlist3: [],
      //榜单歌曲
      trancks1: [],
      trancks2: [],
      trancks3: [],
      flags: false,
      user: true,
      songlist: [],
      singlist: [],
    }
  },

  computed: {
    nologin() {
      return window.localStorage.getItem('userId') === null
    },

    followeds() {
      return this.$store.state.user.followeds === undefined
    }, //动态
    follows() {
      return this.$store.state.user.follows === undefined
    }, //关注
    gender() {
      return this.$store.state.user.gender === undefined
    }, //粉丝
  },

  methods: {
    getname(n) {
      return this.songlist[n].name
    },
    getname1(n) {
      return this.trancks2[n].name
    },
    getname2(n) {
      return this.trancks3[n].name
    },

    geturl1(id, i, item) {
      const data = JSON.parse(localStorage.getItem('top'))
      let flag = true
      for (const song in data) {
        if(data[song].id === item.id) {
          flag = false
          return
        } else {
          flag = true
        }
      }
      if (flag) {
        this.singlist.push(item)
        console.log(typeof(this.singlist))
        this.$store.commit('song/getsonglist', this.singlist)
        localStorage.setItem('top', JSON.stringify(this.singlist))
      }

      


      this.$store.commit('song/getpic', item.al.picUrl)
      axios
        .get(`${this.url}/song/url?`, {
          params: {
            id,
          },
        })
        .then((res) => {
          var url = res.data.data[0].url
          if (url !== null) {
            this.$store.commit('song/getsong', url)
          } else {
            this.$router.push('/error')
          }
        })

      //判断音乐是否可用
      // axios.get(`${this.url}/check/music?`, {
      //   params: {
      //     id
      //   }
      // }).then(res => {
      //   if (res.data.message !== 'ok') {
      //     this.$message.error('账号不存在')
      //   }
      //   console.log(res)
      // })
      this.$store.state['song/name'] = this.getname(i)
    },
    geturl2(id, i, item) {
      this.$store.commit('song/getpic', item.al.picUrl)

      axios
        .get(`${this.url}/song/url?`, {
          params: {
            id,
          },
        })
        .then((res) => {
          var url = res.data.data[0].url
          if (url !== null) {
            this.$store.commit('song/getsong', url)
          } else {
            this.$router.push('/error')
          }
        })

      //判断音乐是否可用
      axios
        .get(`${this.url}/check/music?`, {
          params: {
            id,
          },
        })
        .then((res) => {
          if (res.data.message !== 'ok') {
            this.$message.success('暂无版权')
          }
        })
      this.$store.state['song/name'] = this.getname1(i)
    },
    geturl3(id, i, item) {
      this.$store.commit('song/getpic', item.al.picUrl) //把图片地址存到 x
      axios
        .get(`${this.url}/song/url?`, {
          params: {
            id,
          },
        })
        .then((res) => {
          var url = res.data.data[0].url
          if (url !== null) {
            this.$store.commit('song/getsong', url)
          } else {
            this.$router.push('/error')
          }
        })

      //判断音乐是否可用
      axios
        .get(`${this.url}/check/music?`, {
          params: {
            id,
          },
        })
        .then((res) => {
          if (res.data.message !== 'ok') {
            this.$message.success('暂无版权')
          }
        })
      this.$store.state['song/name'] = this.getname2(i)
    },
    gedata() {
      axios.get(`${this.url}/personalized`).then((res) => {
        // console.log(res.data.result[0].id)
        let a = res.data.result
        for (let i = 0; i < 8; i++) {
          this.list.push(a[i])
        }
        // console.log(res.data.result)
      })
    }, //热门推荐
    gethot() {
      axios.get(`${this.url}/album/newest`).then((res) => {
        this.newAlbumData = res.data.albums.slice(0, 10)
      })
    }, //获取新碟上架
    show() {
      this.flag = !this.flag
    },
    getanchor() {
      axios.get(`${this.url}/dj/toplist/popular`).then((res) => {
        let a = res.data.data.list
        for (let i = 0; i < 10; i++) {
          this.hotanchor.push(a[i])
        }
      })
    },
    bangdan() {
      axios.get(`${this.url}/playlist/detail?id=19723756`).then((res) => {
        var name = res.data.playlist
        this.bangdanlist1.push(name)
        this.trancks1 = name.tracks.slice(0, 10)
        var data = name.tracks.slice(0, 10)
        this.songlist = data
      })
    },
    bangdan2() {
      axios.get(`${this.url}/playlist/detail?id=3779629`).then((res) => {
        var name = res.data.playlist
        this.bangdanlist2.push(name)
        this.trancks2 = name.tracks.slice(0, 10)
      })
    },
    bangdan3() {
      axios.get(`${this.url}/playlist/detail?id=2884035`).then((res) => {
        var name = res.data.playlist
        this.bangdanlist3.push(name)
        this.trancks3 = name.tracks.slice(0, 10)
      })
    }, //登录
    showlogin() {
      //点击打开登录框
      if (this.$route.meta.title === '抑郁云官网') {
        this.$router.push('/home/login')
        this.$store.commit('login/show')
      } else if (this.$route.meta.name === '登录') {
        this.$store.commit('login/show')
      }
    }, //打开登录框
    // 播放榜单事件
    play(name) {
      if (name == '飙升榜') {
        this.$store.commit('song/getsonglist', this.trancks1)
        localStorage.setItem('top', JSON.stringify(this.trancks1))
      } else if (name == '新歌榜') {
        this.$store.commit('song/getsonglist', this.trancks2)
        localStorage.setItem('top', JSON.stringify(this.trancks2))
      } else {
        this.$store.commit('song/getsonglist', this.trancks3)
        localStorage.setItem('top', JSON.stringify(this.trancks3))
      }
    },
  },

  created() {
    this.$store.getters['user/getdata'] //获取 session中用户的登录状态
  },

  mounted() {
    this.gedata()
    this.gethot()
    this.getanchor()
    this.bangdan()
    this.bangdan2()
    this.bangdan3()
  },

  updated() {
    this.$store.getters['user/getdata'] //获取 session中用户的登录状态
  }
};
</script> 

<style scoped lang='less'>
.conentfooter {
  margin: 22px 0 0 20px;
}

.conentfooter li.fst {
  padding-left: 0;
}

.conentfooter li {
  float: left;
  height: 40px;
  padding: 0 18px;
  border-right: 1px solid #e4e4e4;
}

.conentfooter li a {
  display: block;
  color: #666;
}

.conentfooter li strong {
  display: block;
  font-size: 20px;
  font-weight: normal;
}

.btn {
  margin-top: 15px;
}

.btn a {
  color: #fff;
  text-decoration: none;
  padding: 0 5px 0 0;
  white-space: nowrap;
  display: inline-block;
  *display: inline;
  *zoom: 1;
  height: 31px;
  line-height: 31px;
  overflow: hidden;
  *line-height: 32px;
  vertical-align: top;
  text-align: center;
  cursor: pointer;
  background: url(../../assets/images/button2.png) right -428px no-repeat;
}

.btn a i {
  width: 60px;
  color: #fff;
  background-position: 0 -387px !important;
  padding: 0 15px 0 20px;
  pointer-events: none;
  display: inline-block;
  *display: inline;
  *zoom: 1;
  height: 31px;
  line-height: 31px;
  overflow: hidden;
  *line-height: 32px;
  vertical-align: top;
  text-align: center;
  cursor: pointer;
  background: url(../../assets/images/button2.png) no-repeat;
}

.maincontent {
  display: flex;
  flex-direction: column;
}

.fell {
  width: 100%;
  display: flex;
}

.u-lv i {
  float: right;
}

.u-icn2-lvright {
  width: 8px;
  height: 17px;
  background-position: -192px -64px !important;
}

.f-fs1 {
  font-size: 14px;
}

.u-icn,
.u-icn2,
.u-icn3 {
  display: inline-block;
  overflow: hidden;
  vertical-align: middle;
}

.u-icn2 {
  background: url(../../assets/images/icon2.png) no-repeat 0 9999px;
}

.u-lv {
  display: inline-block;
  height: 17px;
  overflow: hidden;
  padding-left: 25px;
  line-height: 18px;
  color: #999;
  font-weight: bold;
  font-style: italic;
}

.u-icn2-lv {
  background-position: -130px -64px !important;
}

.u-icn,
.u-icn2,
.u-icn3 {
  display: inline-block;
  overflow: hidden;
  vertical-align: middle;
}

.u-icn2 {
  background: url(../../assets/images/icon2.png) no-repeat 0 9999px;
}

.maincontent {
  width: 250px;
  height: 185px;
  padding-top: 20px;
  background: url('../../assets/images/index.png') 0 -270px no-repeat;
}

.maincontent img {
}

.conentleft {
  float: left;
  width: 80px;
  height: 80px;
  margin-left: 20px;
  _margin-left: 10px;
  padding: 2px;
  background: #fff;
  border: 1px solid #dadada;
}

.conentright p {
  width: 100%;
  margin-top: 5px;
}

.conentright {
  float: left;
  width: 115px;
  margin-left: 18px;
  padding-top: 3px;
}

form button {
  background-color: salmon;
  border: none;
  width: 40%;
  height: 30px;
  margin-left: 32px;
  border-radius: 5px;
  margin-top: 20px;
}

.zhuce {
  margin-top: 20px;
}

.zhuce a {
  width: 10px;
  height: 20px;
  color: black;
  margin-top: 10px;
  margin-left: 37px;
}

.footers a {
  display: block;
  width: 118px;
  height: 100%;
  margin: 20px auto 0;
  padding-right: 0;
  font-size: 12px;
  border: 1px solid #979797;
  border-radius: 15px;
  line-height: 28px;
  text-align: center;
  color: rgba(0, 0, 0, 0.8);
}

.footers {
  position: absolute;
  bottom: -16.3%;
  left: 38.7%;
}

.live span {
  width: 60%;
  margin-top: 10px;
}
// 查看全部
.lookAll{
  display: flex;
  align-items: center;
  height: 32px;
  justify-content: flex-end;
  margin-right: 20px;
}
label {
  padding-top: 18px;
  margin-bottom: 0;
  width: 21%;
  text-align: center;
}

span input {
  display: block;
  width: 100%;
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #555;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
  box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
  -webkit-transition: border-color ease-in-out 0.15s,
    -webkit-box-shadow ease-in-out 0.15s;
  -o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
  transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}

.word {
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
}

.phones {
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
}

form {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.live {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.live > div {
  text-align: center;
}

.logincontent .footer > a {
  display: block;
  width: 118px;
  height: 100%;
  margin: 20px auto 0;
  padding-right: 0;
  font-size: 12px;
  border: 1px solid #979797;
  border-radius: 15px;
  line-height: 28px;
  text-align: center;
  color: rgba(0, 0, 0, 0.8);
}

.logincontent .footer {
  position: absolute;
  bottom: -27px;
  left: 0;
  text-align: center;
  width: 100%;
}

.txt a {
  color: #0c73c2;
  cursor: pointer;
}

.txt {
  font-size: 12px;
  width: 200px;
  left: 260px;
  bottom: 56px;
  line-height: 17px;
  color: rgba(0, 0, 0, 0.4);
  position: absolute;
}

.qrcode .title {
  text-indent: 3rem;
}

.qrcode {
  width: 146px;
  height: 138px;
  padding: 4px;
  position: relative;
  overflow: hidden;
  margin: 20px 0 0 45px;
}

.logincontent .right {
  margin-left: 25px;
  text-align: center;
}

.phone {
  transition: width 10s linear;
  margin-left: 101px;
  width: 125px;
  height: 220px;
  background: url('../../assets/images/qr_guide.png');
  background-size: contain;
}

.logincontent {
  width: 100%;
  display: flex;
  padding: 38px 0 20px;
  position: relative;
}

.showlogin .top {
  display: flex;
  justify-content: space-between;
  z-index: 10;
  border-bottom: 1px solid #191919;
  border-radius: 4px 4px 0 0;
  background: #2d2d2d;
  height: 39px;
  align-items: center;
  cursor: move;
}

.showlogin .top span:nth-child(1) {
  margin-left: 20px;
}

.showlogin .top span:nth-child(2) {
  margin-right: 20px;
  cursor: pointer;
}

.showlogin .top span {
  color: white;
}

.showlogin {
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  position: absolute;
  z-index: 9998;
  width: 530px;
  border-radius: 4px;
  box-shadow: 0 5px 16px rgb(0 0 0 / 80%);
  background: #fff;
  border: none;
  top: 275px;
  left: 695px;
  height: 372px;
  overflow: hidden;
}

.recommendhot {
  width: 982px;
  margin: 0 auto;
  display: flex;
  font-size: 12px;
  box-sizing: border-box;
}

.recommendhot > .right {
  background-color: #fff;
  width: 250px;
  border-left: 1px solid #eee;
}

.content {
  width: 688px;
  padding: 20px 20px 40px;
  display: flex;
  background-color: #fff;
  flex-direction: column;
}

.content ul {
  display: flex;
}

.content .text {
  width: 100%;
  display: flex;
  border-bottom: 2px solid #c10d0c;
  background: url('../../assets/images/index.png') -225px -156px no-repeat;
}

.hot p {
  font-size: 20px;
  font-weight: normal;
  line-height: 28px;
  text-indent: 2rem;
  margin-bottom: 10px;
}

.text ul {
  margin-left: 20px;
  display: flex;
  align-items: center;
}

.text ul li span {
  margin: 0 10px;
}

.text .more {
  margin-left: auto;
  margin-right: 20px;
  display: flex;
  align-items: center;
}

.more i {
  background: url('../../assets/images/index.png') 0 -240px no-repeat;
  display: inline-block;
  width: 12px;
  height: 12px;
}

.pic {
  width: 100%;
  margin: 20px 0 0 0;
}

.pic img {
  overflow: hidden;
}

.pic img:hover {
  transform: scale(1.2);
  transition: 0.8s all linear;
}

.pic ul li {
  overflow: hidden;
}

.pic ul {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  overflow: hidden;
}

.pic ul li {
  width: 140px;
  height: 204px;
  position: relative;
}

.pic p {
  margin: 8px 0 3px;
  font-size: 14px;
}

.bottom {
  position: absolute;
  bottom: 64px;
  left: 0;
  width: 100%;
  height: 27px;
  color: #ccc;
  display: flex;
  background: url('../../assets/images/coverall.png') 0 -537px no-repeat;
}

.bottom .icon {
  float: left;
  width: 14px;
  height: 11px;
  margin: 9px 5px 9px 10px;
  background: url('../../assets/images/iconall.png') no-repeat 0 -24px;
}

.bottom .nb {
  float: left;
  margin: 7px 0 0 0;
}

.bottom a:hover {
  background-position: 0 -60px !important;
}

.bottom a {
  position: absolute;
  background: url('../../assets/images/iconall.png');
  right: 10px;
  bottom: 5px;
  width: 16px;
  height: 17px;
}

.pic img {
  width: 140px;
  height: 140px;
}

.bottomc {
  position: absolute;
  bottom: 64px;
  left: 0;
  width: 100%;
  height: 27px;
  color: #ccc;
  display: flex;
}

.bottomc a:hover {
  background-position: 0 -60px !important;
}

.bottomc a {
  position: absolute;
  background: url('../../assets/images/iconall.png');
  right: 10px;
  bottom: 5px;
  width: 16px;
  height: 17px;
}

.main {
  width: 252px;
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
  background: url('../../assets/images/index.png') -39px 0 no-repeat;
  background-size: 10000px 1000px;
  height: 126px;
  padding-top: 0;
}

.main .mainconent2 > p {
  width: 205px;
  margin: 0 auto;
  padding: 16px 0;
  line-height: 22px;
  color: #666;
  font-size: 12px;
}

.main .mainconent2 > button {
  display: block;
  width: 100px;
  height: 31px;
  line-height: 31px;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 0 #8a060b;
  margin: 0 auto;
  background: url('../../assets/images/index.png') 0 -195px no-repeat;
  border: none;
  outline: none;
  cursor: pointer;
}

.main > button:hover {
  color: #fff;
  text-shadow: none;
}

.songer {
  margin-top: 30px;
}

.songer .title {
  display: flex;
  justify-content: space-between;
  height: 23px;
  margin: 0 20px;
  border-bottom: 1px solid #ccc;
  color: #333;
}

.songer .title a {
  display: block;
  font-weight: normal;
  color: #666;
}

.songer .title a:hover {
  text-decoration: underline;
}

.list {
  margin: 6px 0 14px 20px;
  height: 380px;
}

.list li {
  margin-top: 14px;
  float: left;
  width: 210px;
  height: 62px;
  background: #fafafa;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list .left {
  float: left;
  width: 62px;
  height: 62px;
  overflow: hidden;
}

.list .right {
  float: left;
  width: 133px;
  height: 60px;
  padding-left: 14px;
  border: 1px solid #e9e9e9;
  border-left: none;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.list .right p {
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list .left {
}

.list .left img:hover {
  transform: scale(1.5);
  transition: all 0.3s linear;
}

.beto {
  width: 250px;
  height: 31px;
}

.beto a {
  width: 210px;
  margin: 0 auto;
  height: 31px;
  display: block;
  text-align: center;
  line-height: 31px;
  outline: none;
  cursor: pointer;
  border-radius: 4px;
  background: url('../../assets/images/button2.png') right -100px;
}

.beto a i {
  width: 98%;
  height: 100%;
  background: url('../../assets/images/button2.png') 0 -59px;
  display: block;
  font-style: normal;
}

.anchor {
  margin: 20px 0 0 20px;
}

.anchor li {
  float: left;
  width: 210px;
  height: 50px;
}

.anchor li > a {
  float: left;
  width: 40px;
  margin-right: 10px;
  cursor: pointer;
}

.anchor .info {
  float: left;
  width: 160px;
  line-height: 21px;
  display: flex;
  flex-direction: column;
}

.anchor .info p {
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #666;
}

.anchor img {
  width: 40px;
  height: 40px;
}

/*榜单*/
.bangdan {
  height: 472px;
  margin-top: 20px;
  padding-left: 1px;
  display: flex;
  background: url('../../assets/images/index_bill.png');
  justify-content: space-around;
}

.bangdan .top {
  height: 100%;
  width: 230px;
}

.bangdan .new {
  height: 100%;
  width: 230px;
}

.bangdan .original {
  height: 100%;
  width: 228px;
}

.bangdan .logo {
  height: 100px;
  padding: 20px 0 0 19px;
}

.logo .left img {
  width: 100%;
  height: 100%;
}

.logo .left {
  float: left;
  display: inline;
  width: 80px;
  height: 80px;
  position: relative;
}

.logo .right {
  float: left;
  width: 116px;
  margin: 6px 0 0 10px;
}

.logo .right > a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  background-color: #f4f4f4;
  font-size: 14px;
  cursor: pointer;
  font-weight: bold;
}

.logo .right > a:hover {
  text-decoration: underline;
  color: black;
}

.logo .right .btn {
  margin-top: 10px;
}

.logo .right .btn a:nth-child(1) {
  display: block;
  float: left;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  text-indent: -9999px;
  background: url('../../assets/images/index.png') -267px -205px no-repeat;
}

.logo .right .btn a:nth-child(2) {
  display: block;
  float: left;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  text-indent: -9999px;
  background: url('../../assets/images/index.png') -300px -205px no-repeat;
}

.song {
  height: 319px;
  margin-left: 50px;
  line-height: 32px;
  display: flex;
  flex-direction: column;
}

.song li {
  height: 32px;
}

.song li:nth-child(1) span {
  color: #c10d0c;
}

.song li:nth-child(2) span {
  color: #c10d0c;
}

.song li:nth-child(3) span {
  color: #c10d0c;
}

.song span {
  float: left;
  position: relative;
  width: 35px;
  height: 32px;
  margin-left: -35px;
  text-align: center;
  color: #666;
  font-size: 16px;
}

ol li a {
  color: #000;
}
</style>